﻿#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
#endregion

namespace BreakOutBattles.Game
{
    /// <summary>
    /// Descripts a level loaded from an external level resource.
    /// </summary>
    public class GameLevel 
    {
        private int destroyableItemsCount = -1;
        private int defaultDestroyableItemsCount = 0;

        /// <summary>
        /// Gets and sets an integer that defines the number of destroyable items in the level.
        /// </summary>
        public int DestroyableItemsCount
        {
            get
            {
                return destroyableItemsCount;
            }
            set
            {
                if (destroyableItemsCount < 0)
                {
                    defaultDestroyableItemsCount = value;
                }

                destroyableItemsCount = value;
            }
        }

        /// <summary>
        /// Gets and sets the description of this level.
        /// </summary>
        public string Description
        {
            get;
            set;
        }

        /// <summary>
        /// Gets and sets the name of the background of this level.
        /// </summary>
        public string LevelBackground
        {
            get;
            set;
        }

        /// <summary>
        /// Gets and sets the brick data of this level.
        /// </summary>
        public List<string> BrickData
        {
            get;
            set;
        }


        public void Reset()
        {
            destroyableItemsCount = defaultDestroyableItemsCount;
        }
    }
}
